﻿package mortal.game.proxy
{
    import Framework.Util.*;
    import Message.Game.*;
    import Message.Public.*;
    import mortal.game.mvc.*;
    import mortal.mvc.core.*;

    public class AutoArenaProxy extends Proxy
    {

        public function AutoArenaProxy()
        {
            return;
        }// end function

        public function getMyInfo() : void
        {
            rmi.iAutoArena.getMyInfo_async(new AMI_IAutoArena_getMyInfo());
            return;
        }// end function

        public function getEnemysInfo() : void
        {
            rmi.iAutoArena.getEnemysInfo_async(new AMI_IAutoArena_getEnemysInfo());
            return;
        }// end function

        public function autoArenaFight(param1:int, param2:SEntityId, param3:int) : void
        {
            rmi.iAutoArena.autoArenaFight_async(new AMI_IAutoArena_autoArenaFight(), param1, param2, param3);
            return;
        }// end function

        public function getBattleRecords() : void
        {
            rmi.iAutoArena.getBattleRecords_async(new AMI_IAutoArena_getBattleRecords());
            return;
        }// end function

        public function getDayReward() : void
        {
            var getRewardSucc:Function;
            getRewardSucc = function (param1:AMI_IAutoArena_getHourReward) : void
            {
                NetDispatcher.dispatchCmd(ServerCommand.AutoArenaGetRewardSucc, null);
                return;
            }// end function
            ;
            rmi.iAutoArena.getHourReward_async(new AMI_IAutoArena_getHourReward(getRewardSucc));
            return;
        }// end function

        public function resetPower() : void
        {
            var resetPowerSucc:Function;
            var resetPowerFail:Function;
            resetPowerSucc = function (param1:AMI_IAutoArena_resetPower, param2:int) : void
            {
                NetDispatcher.dispatchCmd(ServerCommand.AutoArenaResetPowerSucc, param2);
                return;
            }// end function
            ;
            resetPowerFail = function (param1:Exception) : void
            {
                NetDispatcher.dispatchCmd(ServerCommand.AutoArenaResetPowerFail, null);
                return;
            }// end function
            ;
            rmi.iAutoArena.resetPower_async(new AMI_IAutoArena_resetPower(resetPowerSucc, resetPowerFail));
            return;
        }// end function

        public function getMyRewardInfo() : void
        {
            rmi.iAutoArena.getMyRewardInfo_async(new AMI_IAutoArena_getMyRewardInfo());
            return;
        }// end function

        public function getMyRecord() : void
        {
            rmi.iAutoArena.getMyRecord_async(new AMI_IAutoArena_getMyRecord());
            return;
        }// end function

        public function getAutoArenaToplist(param1:int) : void
        {
            rmi.iAutoArena.getAutoArenaToplist_async(new AMI_IAutoArena_getAutoArenaToplist(), param1);
            return;
        }// end function

    }
}
